package com.passgen;

import com.sun.corba.se.spi.servicecontext.UEInfoServiceContext;

import javax.swing.*;
import java.awt.*;

/**
 * Created by IntelliJ IDEA.
 * User: pvg
 * Date: 10/23/11
 * Time: 11:02 AM
 *
 */
public class PassGenMain extends JFrame {
    public PassGenMain() throws HeadlessException {
        super("Password Generator");
      try {
        UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
      } catch (Exception e) {
        e.printStackTrace();
      }
      setSize(300, 200);
        setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
        PasswordGeneratorForm form = new PasswordGeneratorForm(this);
        getContentPane().add(form.getMainPanel());
        setVisible(true);
        pack();

        form.getGenerate().doClick();
    }

    public static void main(String[] args) {
        new PassGenMain();

    }
}
